//
//  UIColor+Extension.swift
//  SinaWeiBoProject
//
//  Created by 房城鸿 on 15/10/21.
//  Copyright © 2015年 房兰峰. All rights reserved.
//

import UIKit

extension UIColor {

    class func randomColor() -> UIColor{
    
     /// 创建随机颜色
        let r = CGFloat(random() % 256)/255
        let g = CGFloat(random() % 256)/255
        let b = CGFloat(random() % 256)/255
        
        return UIColor(red: r, green: g, blue: b, alpha: 1.0)
    }
}